import java.util.*;

public class Main {
    public static void main(String[] args) {
        Crouse crouse=new Crouse();
        String s=crouse.toString();
        System.out.println(s);
    }
    public static void main1(String[] args) {
        Student stu1=new Student("tom",10);
        Student stu2=new Student("zhaoshilong",5);
        Student stu3=new Student("zhang",19);
        Student stu4=new Student("zhou",9);
        List<Student> list=new ArrayList<>();
        list.add(stu1);
        list.add(stu2);
        list.add(stu3);
        list.add(stu4);
        Iterator<Student> it=list.iterator();
        while (it.hasNext()){
            System.out.println("姓名"+it.next().name+"年龄"+it.next().age);
        }
    }
}